package com.cdtye.itps.cms.dao.device.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.cdtye.itps.cms.dao.enums.DelFlagEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * 
 * @author 
 * @date 2022-05-09
 */
@ApiModel("设备周期关联表")
@Data
@Accessors(chain = true)
@TableName("JCW_DEVICE_CLASS_PERIOD")
public class JcwDeviceClassPeriod {

    private static final long serialVersionUID = -6162263701202040410L;

    @TableId(value = "ID",type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("创建时间")
    @TableField(value ="CREATE_DATETIME", fill = FieldFill.INSERT)
    private Date createDatetime;

    @ApiModelProperty("更新时间")
    @TableField(value ="UPDATE_DATETIME",fill = FieldFill.INSERT_UPDATE)
    private Date updateDatetime;

    @ApiModelProperty("删除标志，Y=是，N=否")
    @TableField(value ="DEL_FLAG", fill = FieldFill.INSERT)
    private DelFlagEnum delFlag;

    @ApiModelProperty("创建人")
    @TableField(value ="CREATE_BY", fill = FieldFill.INSERT, insertStrategy= FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String createBy;

    @ApiModelProperty("更新人")
    @TableField(value ="UPDATE_BY",fill = FieldFill.INSERT_UPDATE, insertStrategy= FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String updateBy;
    
    @ApiModelProperty(value = "设备分类id")
    private String deviceClassId;

    @ApiModelProperty(value = "线路id")
    private String seclineId;

    @ApiModelProperty(value = "检修周期id")
    private String repairPeriodConfigId;

    @ApiModelProperty(value = "检测周期id")
    private String detectPeriodConfigId;

    @ApiModelProperty(value = "巡视周期id")
    private String inspectionPeriodConfigId;
}